package com.xmzs.midjourney.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.xmzs.midjourney.domain.MjRoom;
import com.xmzs.midjourney.domain.vo.MjRoomVo;
import com.xmzs.midjourney.domain.bo.MjRoomBo;
import com.xmzs.common.mybatis.core.page.TableDataInfo;
import com.xmzs.common.mybatis.core.page.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * MJ创作会话Service接口
 *
 * @author Lion Li
 * @date 2023-08-09
 */
public interface IMjRoomService {

    /**
     * 查询MJ创作会话
     */
    MjRoomVo queryById(Long id);

    /**
     * 查询MJ创作会话列表
     */
    TableDataInfo<MjRoomVo> queryPageList(MjRoomBo bo, PageQuery pageQuery);

    /**
     * 查询MJ创作会话列表
     */
    List<MjRoomVo> queryList(MjRoomBo bo);

    /**
     * 新增MJ创作会话
     */
    Boolean insertByBo(MjRoomBo bo);

    /**
     * 修改MJ创作会话
     */
    Boolean updateByBo(MjRoomBo bo);

    /**
     * 校验并批量删除MJ创作会话信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
